import { defineStore } from 'pinia';
import type { IAdminState } from './types';

import { getAdministratorsList } from '@/service/system/index';

    const useAdminStore= defineStore('administrators', {
    state: (): IAdminState => {
        return {
            adminList: [],
            age: 18,
        };
    },
    getters: {
       
    },
    actions: {
        async getAdministratorsListAction() {
            const result = await getAdministratorsList({});
            this.adminList=result.data
        },
    },
});

export default useAdminStore